package storager

import (
	"context"
	"github.com/gogf/gf/v2/net/ghttp"
)

// UploadDrive 存储驱动
type UploadDrive interface {
	// Upload 直接上传
	Upload(ctx context.Context, file *ghttp.UploadFile) (obj *FileObject, err error)
	// Destroy 删除文件
	Destroy(ctx context.Context, key string) error
	// Location 访问地址
	Location(ctx context.Context, key string) string
}
